/**
 * 0. Project	: com.dnbns.bodywater 프로젝트
 *
 * 1. FileName	: LoginFinishActivity.java
 * 2. Package	: com.dnbns.bodywater
 * 3. 작성자		: 윤화현
 * 4. 작성일		: 2013. 12. 4. 오전 9:16:49
 * 5. Comment	: 
 */

package com.dnbns.bodywater;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

import com.dnbns.lib.CodeUtil;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;

public class LoginFinishActivity extends Activity {

	private AdView mAdView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_login_finish);

		mAdView = (AdView) this.findViewById(R.id.adView);
		mAdView.loadAd(new AdRequest.Builder().build());

		//Assets db 복사
		CodeUtil.getInstance(getApplicationContext()).getAssetDB();
		
		init();
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		mAdView.destroy();
		super.onDestroy();
	}

	
/**
 *************************************************************** 
 * init
 *************************************************************** 
 */

	private void init(){
		ImageView finish = (ImageView)findViewById(R.id.finish);
		
		finish.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent mIntent = new Intent(getApplicationContext(), MainActivity.class);
				startActivity(mIntent);
				finish();
			}
		});
	}
}
